﻿@model VMC.Domain.Model.DataStructure.AddEditComplexDataType

@VMCHelper.WideTextInput()
@using (Html.BeginForm()) {
    <fieldset class="border">
        <!--<legend>AddEditComplexDataType</legend>-->
		<table  class="input-form-table wide-table">
		@*<tr >
			<td  colspan="2"> @Html.ValidationSummary(true)</td>
		</tr>
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.IsPublic) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.IsPublic)
		</td>
		</tr>*@
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.IsPublic) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.Name) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.Name)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.Name) </td>
		</tr>
        
        <tr >
		 @*<td class="editor-label" >
            @Html.LabelFor(model => model.AutoGenerateVaribleName) 
		</td>*@
        <td class="editor-field" style="text-align: right;" colspan="2" >
            @Html.EditorFor(model => model.AutoGenerateVaribleName)  Auto generate variable name?
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.AutoGenerateVaribleName) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.VariableName) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.VariableName)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.VariableName) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.Description) 
		</td>
        <td class="editor-field" >
            @Html.TextAreaFor(model => model.Description)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.Description) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.Comment) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.Comment)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.Comment) </td>
		</tr>
        
        <tr  class="submit-button">
            <td  colspan="2">  <input type="submit" icon-class="action-icon-datatype" value="Save" /> </td>
		</tr>
        
	</table>
    </fieldset>
}

